package T01_test_all.test19_Student_All;

import java.util.Scanner;

public class T1902_Student_controls {
    public static void main(String[] args) {
        loop:while (true){
            System.out.println("--------学生管理系统----------");
            System.out.println("1：增加信息");
            System.out.println("2：修改信息");
            System.out.println("3：删除信息");
            System.out.println("4：查询信息");
            System.out.println("5：退出");
            System.out.println("请选择：");

            Scanner sc = new Scanner(System.in);
            String choose = sc.next();
            switch (choose){
                case "1" -> System.out.println("增加信息");
                case "2" -> System.out.println("修改信息");
                case "3" -> System.out.println("删除信息");
                case "4" -> System.out.println("查询信息");
                case "5" -> {
                    System.out.println("退出");
                    break loop;
//                    System.exit(0); //停止虚拟机运行
                }
                default -> System.out.println("没有这个选项");
            }
        }
    }
}
